]> dgit.raspbian.org Git - gnome-shell.git/commitdiff
loginDialog: don't try to stop work spinner if it's already gone
authorRay Strode <rstrode@redhat.com>
Wed, 6 Feb 2013 19:36:37 +0000 (14:36 -0500)
committerRay Strode <rstrode@redhat.com>
Tue, 19 Feb 2013 01:35:05 +0000 (20:35 -0500)
This can happen if the dialog gets reset at the wrong moment.

https://bugzilla.gnome.org/show_bug.cgi?id=693757

js/gdm/loginDialog.js

index d2b93ba729766e30f1d5a5ae4e5ced2169970b97..d41b520efdc1b136ce9efb25fdfab4d9aac1fa81 100644 (file)
@@ -1063,7 +1063,8 @@ const LoginDialog = new Lang.Class({
                                transition: 'linear',
                                onCompleteScope: this,
                                onComplete: function() {
-                                   this._workSpinner.stop();
+                                   if (this._workSpinner)
+                                       this._workSpinner.stop();
                                }
                              });
         }